<template>
    <div class="nav-tabs-item">
        <div class="icon">
        <slot name="icon"></slot>
             <div class="icon-info" v-if="info">{{info}}</div>
        </div>
        <div class="item-text">
        <slot></slot>
        </div>
    </div>
</template>

<script>

export default {
    name:'tab-item',
    props: {
        info: String
    },

}
</script>


<style scoped lang="scss">

.nav-tabs-item{
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    color: #666;
    display: flex;
    line-height: 1;
    font-size: 12px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    .icon{
        font-size: 18px;
        margin-bottom: 5px;
        position: relative;
        .icon-info{
            color: #fff;
            left: 50%;
            top: -.5em;
            font-size: .5em;
            margin-left: .8em;
            padding: 0 .3em;
            text-align: center;
            min-width: 1.2em;
            line-height: 1.2;
            position: absolute;
            border-radius: .6em;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            background-color: #f44;
            font-family: PingFang SC,Helvetica Neue,Arial,sans-serif;
        }
    }
    .item-text{

    }
}

</style>
